home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6ACFE5D8-1993-11D2-BC4A-464B01000000}#2.0#0"; "Pollon98.ocx"
- Begin VB.Form pollondemo
- Caption = "demo - POLLON 98"
- ClientHeight = 3195
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4680
- LinkTopic = "Form1"
- ScaleHeight = 3195
- ScaleWidth = 4680
- StartUpPosition = 3 'Windows Default
- Begin Pollon98_SoftWareKey.Pollon Pollon1
- Left = 120
- Top = 120
- _ExtentX = 3413
- _ExtentY = 2143
- End
- Begin VB.CommandButton Command1
- Caption = "Inizialize"
- Height = 375
- Left = 1200
- TabIndex = 0
- Top = 2760
- Width = 2175
- End
- Begin VB.Label Label2
- Caption = "Before inizializzation this pollon98 return only checkWrong because there no stored information about this PC"
- Height = 1215
- Left = 2280
- TabIndex = 2
- Top = 120
- Width = 2295
- End
- Begin VB.Label Label1
- Caption = "After Inizialization this software will only run on this machine"
- Height = 255
- Left = 120
- TabIndex = 1
- Top = 2400
- Width = 4455
- End
- Attribute VB_Name = "pollondemo"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- 'this is the procedure that collect and store informations
- Pollon1.InizializePC
- End Sub
- Private Sub Form_Load()
- 'If there is no stored information .check value is false
- 'you can evaluete .chek here using an if like
- ' if pollon1.check = false then msgbox ("You are not allowed")
- Pollon1.Check
- 'also you can use the CheckOK and CheckWrong Event
- End Sub
- Private Sub Pollon1_CheckOK()
- MsgBox ("You are allowed to enter")
- End Sub
- Private Sub Pollon1_CheckWrong()
- MsgBox ("You are not allowed to enter...."), vbCritical, ("ERROR!!! Protection Wrong")
- End Sub
-